package dao;

import bean.dto.RoleQueryPage;
import bean.dto.RolesDTO;
import bean.pojo.Roles;
import bean.vo.RoleVo;

import java.util.List;

/**
 * dao.impl
 * User: mcw
 * Date: 2024/12/16 上午10:08
 * motto:   春天（spring）没有虫子（bug)
 * Description:
 * Version: V1.0
 */
public interface RoleDao {
    Long findByTotal(RoleQueryPage queryPage);

    List<Roles> findByPage(RoleQueryPage queryPage);

    boolean insert(RolesDTO roles);

    boolean deleteById(Integer roleId);

    boolean update(RolesDTO roles);

    List<RoleVo> findAllList();
}
